package com.five.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author keibdye
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("学习足迹实体类")
public class StudyTrace {

    @ApiModelProperty("唯一id")
    private Long id;

    @ApiModelProperty("用户id")
    private Long userId ;

    @ApiModelProperty("课程id")
    private Long courseId ;


    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("课程对象")
    private Course course;


}
